package vip.afeng.rpgserver.data;

public class BasePropertyValue {
    private Integer id;

    private Integer neigongId;

    private String neigongName;

    private Integer hp;

    private Integer mana;

    private Integer shenfa;

    private Integer tipo;

    private Integer jingli;

    private Integer shanbi;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getNeigongId() {
        return neigongId;
    }

    public void setNeigongId(Integer neigongId) {
        this.neigongId = neigongId;
    }

    public String getNeigongName() {
        return neigongName;
    }

    public void setNeigongName(String neigongName) {
        this.neigongName = neigongName == null ? null : neigongName.trim();
    }

    public Integer getHp() {
        return hp;
    }

    public void setHp(Integer hp) {
        this.hp = hp;
    }

    public Integer getMana() {
        return mana;
    }

    public void setMana(Integer mana) {
        this.mana = mana;
    }

    public Integer getShenfa() {
        return shenfa;
    }

    public void setShenfa(Integer shenfa) {
        this.shenfa = shenfa;
    }

    public Integer getTipo() {
        return tipo;
    }

    public void setTipo(Integer tipo) {
        this.tipo = tipo;
    }

    public Integer getJingli() {
        return jingli;
    }

    public void setJingli(Integer jingli) {
        this.jingli = jingli;
    }

    public Integer getShanbi() {
        return shanbi;
    }

    public void setShanbi(Integer shanbi) {
        this.shanbi = shanbi;
    }

    public void reSet(int level, UpdateOne updateOne) {
        setHp(getHp()+level*Integer.valueOf(updateOne.getUpHp()));
        setJingli(getJingli() + level * Integer.valueOf(updateOne.getUpJingli()));
        setMana(mana + level * Integer.valueOf(updateOne.getUpMana()));
        setShanbi(shanbi + level * Integer.valueOf(updateOne.getUpShabi()));
        setShenfa(shenfa + level * Integer.valueOf(updateOne.getUpShenfa()));
        setTipo(tipo+level*Integer.valueOf(updateOne.getUpTipo()));
    }
}